<%@ Page Language="C#" Description="Iscrizione" debug="false"%>
<%@ Import Namespace="Users"%>
<%@ Import Namespace="dammelau"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<LINK type="text/css" rel="stylesheet" href="main.css">
<title id="title" runat=server></title>
</head>
<script language="C#" runat=server>
void Page_Load(Object sender, EventArgs EvArgs) {
//	whole.sqlUtil sqlu = new    whole.sqlUtil();
	usrUtil usru = new    usrUtil(Page);

	if( Cache["online("+usru.nick+")"] != null )
		Cache.Remove("online("+usru.nick+")");

    if (usru.isLogged)
        if (Request.Url.ToString().Contains("message"))
        {
            usru.logout(Page);
        }
        else
            Response.Redirect(ConfigurationManager.AppSettings["loginserver"].ToString() + "/logout.aspx?hostkey=" + ConfigurationManager.AppSettings["hostkey"].ToString() + "&site=" + Request.Url + "&bounce");
}
</script>
<body>
Logout!
</body>
</html>

